home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 41 / CD Expert nº 41.iso / DReign2 / DR2Demo.exe / data1.cab / Files / missions / demo / Demo Mission 2.zwp / objective_start_sprawlers.cfg < prev    next >
Encoding:
Text File  |  2000-09-01  |  2.5 KB  |  108 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 1997-99 Pandemic Studios
  4. //
  5. // Dark Reign II
  6. //
  7.  
  8. CreateObjectType("objective_start_sprawlers", "Objective")
  9. {
  10.   GameObj();
  11.   ObjectiveObj()
  12.   {
  13.    Condition("TRUE");
  14.  
  15.     Action()
  16.     {
  17.       AddBase("Base", "sprawl")
  18.         {
  19.           Orientation(90);
  20.         }
  21.       AssignBaseConstructors("Base")
  22.       {
  23.         Tag("Base");
  24.       }
  25.       AssignBaseUnits("Base")
  26.       {
  27.         Tag("Base");
  28.       }
  29.       SetUnitLimit(200);
  30.       CreateVarInteger("@.outro", 0);
  31.       NewObjective("objective_patrol_hillpaths");
  32.       NewObjective("objective_checkion1");
  33.       NewObjective("objective_checkion2");
  34.       NewObjective("objective_start_reinforcements");
  35.       NewObjective("objective_double_reinforcements");
  36.     }
  37.   }
  38. }
  39.  
  40. CreateObjectType("objective_outro_spawn", "Objective")
  41. {
  42.   GameObj();
  43.   ObjectiveObj()
  44.   {
  45.       Condition("VarConstInteger", "@.outro", "==", 1);
  46.  
  47.     Action()
  48.     {
  49.       ExecuteScript("OutroSpawn", "squad.move.spawntoregion")
  50.       {
  51.         Op("%.region.src", "=", "OutroSpawn");
  52.         Op("%.types", "=", "reinforcements4");
  53.         Op("%.region.dst", "=", "Outro");
  54.         Op("%.formation", "=", "Assault");
  55.         Op("%.direction", "=", 90);
  56.       }
  57.     }
  58.   }
  59. }
  60.  
  61.  
  62. CreateObjectType("objective_start_sprawlers_hidden", "Objective")
  63. {
  64.   GameObj();
  65.   ObjectiveObj()
  66.   {
  67.    Condition("TRUE");
  68.  
  69.     Action()
  70.     {
  71.       CreateVarInteger("@.triggerarmy", 0);
  72.       CreateVarInteger("@.outro", 0);
  73.       NewObjective("objective_outro_spawn");
  74.       ExecuteScript("Cin1", "squad.move.tagtoregion.wait")
  75.       {
  76.         Op("%.tag", "=", "Cin1");
  77.         Op("%.region", "=", "Cin1");
  78.         Op("%.attack", "=", 0);
  79.       }
  80.       ExecuteScript("Cin2", "squad.move.tagtoregion.wait")
  81.       {
  82.         Op("%.tag", "=", "Cin2");
  83.         Op("%.region", "=", "Cin2");
  84.         Op("%.attack", "=", 0);
  85.       }
  86.       ExecuteScript("Cin3", "squad.move.tagtoregion.wait")
  87.       {
  88.         Op("%.tag", "=", "Cin3");
  89.         Op("%.region", "=", "Cin3");
  90.         Op("%.attack", "=", 0);
  91.       }
  92.       ExecuteScript("Cin4", "squad.move.tagtoregion.wait")
  93.       {
  94.         Op("%.tag", "=", "Cin4");
  95.         Op("%.region", "=", "Cin4");
  96.         Op("%.attack", "=", 0);
  97.       }
  98.       ExecuteScript("CinBack", "squad.move.tagtoregion.wait")
  99.       {
  100.         Op("%.tag", "=", "CinBack");
  101.         Op("%.region", "=", "CaravanSpawn");
  102.         Op("%.attack", "=", 0);
  103.       }
  104.     }
  105.   }
  106. }
  107.  
  108.